package com.xfxz.merchant.model;


import com.google.gson.Gson;

/**
* Created by King on 2017/02/10
*/

public class ModelImpl implements Model{
    private Gson mGson;
    private Object mObject;
    public ModelImpl() {
        mGson = new Gson();
    }

    @Override
    public void analyData(String json , Class cla) {
        mObject =  mGson.fromJson(json,cla.getClass());
    }

    @Override
    public Object getData() {
        return mObject;
    }
}